<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'AddAddress.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="/sbm/css/screen.css" rel="stylesheet" type="text/css">

<script language="javascript">
	function mycheck() {
		if (myform.name.value == "") {
			alert("仓库名称为空！");
			myform.name.focus();
			return false;
		}
		if (myform.description.value == "") {
			alert("仓库地址不能为空！");
			myform.description.focus();
			return false;
		}
	}
</script>

</head>

<body>
	<s:form action="addaddress" method="post" enctype="multipart/form-data"
		name="myform">
		<table width="600px" align="center" class="class1">
			<tr>
				<td colspan="3" align="right"><span class="title">新增一个物料地点</span>
				</td>
			</tr>
			<tr>
				<td width="10%">&nbsp;</td>
				<td>
					<table>
						<tr>
							<td width="30%" height="38" align="left">名称</td>
							<td><s:textfield name="add.name" Id="name" />
							</td>
						<tr>
						<tr>

							<td align="left">地址描述</td>
							<td><s:textfield name="add.description" id="description" />
							</td>
						<tr>
					</table></td>
				<td width="20%">&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td>&nbsp;&nbsp;&nbsp;&nbsp;<input name="Submit" type="submit"
					value="确 认" /></td>
			</tr>
			<tr>
				<td height="35" colspan="2" class="top_hui_text" align="center"
					colspan="2"><span class="errorAndmes"><s:actionerror
							cssStyle="font-family: Arial,Helvetica,sans-serif" /> </span></td>
			</tr>
		</table>
	</s:form>
</body>
</html>
